home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Game-Power
/
Amiga Game-Power.iso
/
pd mix i
/
pict saver
/
analyrim
/
dbmsdocs.zoo
/
rimcrd.doc
< prev
next >
Wrap
Text File
|
1992-01-05
|
3KB
|
186 lines
RIM Handy Reference Card
DEFINING A DATABASE SCHEMA
DEFINE dbname
OWNER password
ATTRIBUTES
attname {REAL} [{length}][KEY]
INT VAR
TEXT
DOUB
RVEC
IVEC
DVEC
attname {RMAT} {row,col} [KEY]
IMAT row,VAR
DMAT VAR,VAR
RELATIONS
relname WITH attname1 [attname2...]
PASSWORDS
{READ PASSWORD} FOR {relname} IS password
RPW ALL
{MODIFY PASSWORD} FOR {relname} IS password
MPW ALL
RULES
attname [IN relname] {EQ} value [{AND}...]
NE OR
GT
GE
LT
LE
attname IN relname {EQA} attname IN relname [{AND}...]
NEA OR
GTA
GEA
LTA
LEA
END
LOADING A RELATION
LOAD relname
value1 value2 ... valueN
END
value: SCALARS val1
TEXT "text string"
VECTOR (val1, val2, ...)
MATRIX(r1c1,r2c1,...),(r1c2,r2c2,...)...)
QUERYING A RELATION
SELECT {attname1 [=fid1],attname2[=fid2],...} FROM relname +
attnum1 [=fid1],...
attname1(i),...
attname1(i,j)...
ALL
[SORTED BY attname1 [={A}],[attname2 [={A}]...]]+
D D
[WHERE ...]
TALLY attname [={A}] FROM relname [WHERE...]
D
WHERE CLAUSE:
WHERE attname {EXISTS} [{AND}...]
FAILS OR
EQS value
EQ {value}
NE MAX
GT MIN
LT
LE
GE
WHERE attname {EQA} attname [{AND}...]
NEA OR
GTA
GEA
LTA
LEA
WHERE ROWS {EQ} rownumber [{AND}...]
NE OR
LT
LE
GE
GT
WHERE {attname} {EQ} list [{AND}...]
ROWS NE OR
WHERE LIMIT EQ number [{AND}...]
OR
...
QUERYING THE SCHEMA
LISTREL [relname]
ALL
EXHIBIT attname1 [attname2...]
PRINT RULES
COMPUTATION COMMAND
COMPUTE {COUNT} attname FROM relname [WHERE...]
MIN
MAX
AVE
SUM
MODIFICATION COMMANDS
CHANGE {attname} TO value [IN relname] WHERE ...
attname(i)
attname(i,j)
CHANGE {RPW} TO newpass FOR relname
MPW
CHANGE OWNER TO newowner
DELETE ROWS FROM relname WHERE ...
DELETE DUPLICATES [attname1,attname2,...] FROM relname
DELETE RULE rulenumber
RENAME ATTRIBUTE attname TO newname [IN relname]
RENAME RELATION relname TO newname
REMOVE relname
RELATIONAL ALGEBRA COMMANDS
INTERSECT relname1 WITH relname2 FORMING relname3 +
[USING attname1 [attname2,...]]
JOIN relname1 Using attname1 WITH relname2 USING attname2 +
FORMING relname3 [WHERE {EQ}]
NE
GT
GE
LT
LE
SUBTRACT relname1 FROM relname2 FORMING relname3 +
[USING attname1 [attname2,...]]
PROJECT relname1 FROM relname2 USING +
{attname1,[attname2,...]} [WHERE ...]
ALL
REPORT COMMANDS
NEWPAGE
BLANK n
TITLE "title"
DATE
LINES n
WIDTH n
KEY COMMANDS
BUILD KEY FOR attname IN relname
DELETE KEY FOR attname IN relname
RIM-TO-RIM COMMAND
UNLOAD [dbname [=newdbname]] {SCHEMA} [relname1 [=mpw] +
DATA
ALL
[relname2 [=mpw],...]
GENERAL COMMANDS
INPUT {filename}
TERMINAL
OUTPUT {filename}
TERMINAL
EXIT
QUIT
MENU
HELP [command name]
USER password
ECHO
NOECHO
CHECK
NOCHECK
TOLERANCE xx.xx [PERCENT]
RELOAD
CLOSE
HOST DEPENDENT COMMANDS (note: may be CDC syntax)
OPEN dbname [=filename],[UN=account],[PW=password],+
[DIRECT={R}]
W
ZIP "jet statement"